﻿
using Awsc.DataAcquisitionSys.Core.Databases;

namespace Awsc.DataAcquisitionSys.Api.StartupFilters
{
    public class AlarmRuleInitializationStartupFilter : IStartupFilter
    {
        public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
        {
            return app =>
            {
                using (var scope = app.ApplicationServices.CreateScope())
                {
                    var db = scope.ServiceProvider.GetRequiredService<SQLiteHelper>();
                }
                next(app);
            };
        }
    }
}
